package com.howie.parnote.web.account;

import com.howie.parnote.constant.ViewConstant;
import com.howie.parnote.web.ParnoteBaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>Title: parnote</p>
 * <p>
 * Description: parnote
 * </p>
 *
 * @author huangyan
 *         Created by HY on 2015/4/24 0024.
 * @version v1.0.0
 */
@Controller
public class AccountManagementController extends ParnoteBaseController {

	@RequestMapping(value = "/account/confirm-email")
	public String confirmEmail(String uid, String sid, String eid) {
		try {
			sharerService.updateConfirmEmail(uid, sid, eid);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return ViewConstant.REDIRECT.getPath() + "/login";
	}
}
